
//导入的自定义包
import function.Person;
//IDEA自动导入内置包
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Person Tom=new Person("Jarry");
        System.out.println(Tom.name);

        Scanner myname=new Scanner(System.in);
        System.out.println("请输入你的名字：");
        String userName=myname.nextLine();
        System.out.println("名字:"+userName);
        }
    }
//Jarry
//请输入你的名字:
//layang
//名字:layang